package com.fang.decorator;

import com.fang.decorator.bo.SubmitOrderBo;

/**
 * @author fanglingxiao
 * @version 1.0
 * @description TODO
 * @date 2022/4/23 11:54 上午
 **/
public class B2cOrderTradeDecorator extends OrderDecorator {

    public B2cOrderTradeDecorator(OrderTradeComponent component) {
        super(component);
    }

    @Override
    public void convertSubmitOrder(SubmitOrderBo bo) {
        super.convertSubmitOrder(bo);
        this.b2cConvert(bo);
    }

    private void b2cConvert(SubmitOrderBo bo) {
        bo.setBizType(1);
        bo.setDeliveryInfo("b2c配送信息");
    }
}
